//
//  EYUITabBarController.swift
//  EY.Mtel_ProjectTemplate_Swift
//
//  Created by zxj on 2020/8/11.
//  Copyright © 2020 EY.Mtel. All rights reserved.
//

import UIKit
import ESTabBarController_swift


enum ExampleProvider {
    static func systemStyle() -> UITabBarController {
        let tabBarController = UITabBarController()
        let more = moreViewController()
        let home = HomeViewController()
        let me = meViewController()
        
        home.tabBarItem = UITabBarItem.init(title: "Home", image: UIImage(named: "home"), selectedImage: UIImage(named: "home_1"))
        more.tabBarItem = UITabBarItem.init(title: "more", image: UIImage(named: "more"), selectedImage: UIImage(named: "more_1"))
        me.tabBarItem = UITabBarItem.init(title: "me", image: UIImage(named: "me"), selectedImage: UIImage(named: "me_1"))
        tabBarController.tabBar.shadowImage = nil
        
        tabBarController.viewControllers = [more, home, me]
        
        return tabBarController
    }
    
    static func customStyle() -> ESTabBarController {
        let tabBarController = ESTabBarController()
        let more = EYBaseNavigationController.init(rootViewController: moreViewController())
        let home = EYBaseNavigationController.init(rootViewController: HomeViewController())
        let me = EYBaseNavigationController.init(rootViewController: meViewController())
        home.tabBarItem = ESTabBarItem.init(title: "Home", image: UIImage(named: "home"), selectedImage: UIImage(named: "home_1"))
        more.tabBarItem = ESTabBarItem.init(title: "more", image: UIImage(named: "more"), selectedImage: UIImage(named: "more_1"))
        me.tabBarItem = ESTabBarItem.init(title: "me", image: UIImage(named: "me"), selectedImage: UIImage(named: "me_1"))
        tabBarController.viewControllers = [more, home, me]
        return tabBarController
    }
    
}
